Function Reference

_DateIsLeapYear

Checks a given year to see if it is a leap year.

#include <Date.au3>
_DateIsLeapYear ( $iYear )

 

Parameters

$iYear The 4-digit year to check.

 

Return Value

Success: Returns 1.
Failure: Returns 0 if the year is not a leap year.
@Error: 0 = No error.
1 = Invalid year.

 

Remarks

None.

 

Related

None.

 

Example


#include <Date.au3>

If _DateIsLeapYear( @YEAR ) Then
    MsgBox( 4096, "Leap Year", "This year is a leap year." )
Else
    MsgBox( 4096, "Leap Year", "This year is not a leap year." )
EndIf